//
//  SCShoppingCenterVC.m
//  SuperCat
//
//  Created by QG on 2020/3/28.
//  Copyright © 2020 和信金谷. All rights reserved.
//

#import "SCShoppingCenterVC.h"
#import "SCShoppingCenterHeaderView.h"
#import "SCShoppingCenterCell.h"

@interface SCShoppingCenterVC ()<UITableViewDelegate, UITableViewDataSource>

/** 列表 */
@property(nonatomic, weak)UITableView *listView;

@end

@implementation SCShoppingCenterVC

- (void)viewDidLoad {
    [super viewDidLoad];
}

-(void)setupUI{
    UITableView *listView = [UITableView createGrouped:self];
    listView.frame = self.view.bounds;
    listView.h -= kTabBarHeight;
    listView.backgroundColor = RGBHEX(0xC2C2C2);
    SCShoppingCenterHeaderView *bannerView = [[SCShoppingCenterHeaderView alloc]initWithFrame:CGRectMake(0, 0, self.view.w, 300)];
    listView.tableHeaderView = bannerView;
    [listView registerClass:[SCShoppingCenterCell class] forCellReuseIdentifier:kSCShoppingCenterCellID];
    [self.view addSubview:listView];
    _listView = listView;
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
